package com.wkbb.sports.enums;

public enum SportsProjectTypeEnum {

    EXAMINE(1,"体检"),
    PHYSICAL(2,"体质"),
    TECHNICAL(3,"技能");

    private SportsProjectTypeEnum(Integer value, String desc) {
        this.value = value;
        this.desc = desc;
    }

    private Integer value;

    private String desc;

    public Integer getValue() {
        return this.value;
    }

    public void setValue(Integer value) {
        this.value = value;
    }

    public String getDesc() {
        return this.desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }

    public static String getDesc(Integer value) {
        for (SportsProjectTypeEnum fileType : SportsProjectTypeEnum.values()) {
            if (fileType.getValue().intValue()==value) {
                return fileType.getDesc();
            }
        }
        return null;
    }
}
